﻿using Rsd.Dudu.Core;
using Rsd.Faith.Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace Rsd.Faith.Sys.Core
{
    /// <summary>
    /// 
    /// </summary>
    public interface IUserService:IService
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="usrname"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        bool ValidateUserNameAndPassword(string usrname, string password);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="usrname"></param>
        /// <returns></returns>
        SysUsersModel GetUserObject(string usrname);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="dengluming"></param>
        /// <param name="xingming"></param>
        /// <param name="mima"></param>
        /// <returns></returns>
        SysUsersModel NewUser(string dengluming,string xingming,string mima);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="pwd1"></param>
        /// <param name="pwd2"></param>
        /// <returns></returns>
        bool SetPassword(string userid, string pwd1, string pwd2);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="oldpwd"></param>
        /// <param name="newpwd1"></param>
        /// <param name="newpwd2"></param>
        /// <returns></returns>
        bool UpdatePassword(string userid, string oldpwd,string newpwd1,string newpwd2);

        

    }
}
